package base.keyboard
{
	import flash.events.Event;

	public class KeyEvent extends Event
	{
		/**
		 *按键按下事件
		 */		
		public static const KEY_DOWN:String = "KeyDown";	
		
		/**
		 *按键弹起事件
		 */		
		public static const KEY_UP:String = "KeyUp";	
		
		
		public static const DEACTIVATE:String = "Deactivate";
		
		/**
		 * 当组合键里面的键值全部被按下事件
		 */		
		public static const COMBO_ALL_KEY_DOWN:String = "comboAllKeyDown";
		
		/**
		 * 组合键被释放事件
		 */		
		public static const COMBO_ALL_KEY_DOWN_RELEASE:String = "comboAllKeyDownRelease";
		
		/**
		 * 组合键按顺序被激活事件
		 */
		public static const COMBO_ACTION:String = "comboAction";
		
		/**
		 *单项键激活
		 */		
		public static const COMBO_SINGLE_KEY_ACTIOIN:String="comboSingleKeyAction";
		
		/**
		 *数据对象 
		 */		
		public var data:*;
		
		public function KeyEvent(type:String, data:*=null)
		{
			this.data = data;
			super(type);
		}
	}
}